import 'package:flutter/material.dart';
import 'package:flutter_deer/account/models/bank_entity.dart';
import 'package:flutter_deer/widgets/state_layout.dart';

class BankProvider extends ChangeNotifier {

  StateType? _commonStateType = StateType.loading;
  StateType? get commonStateType => _commonStateType;
  StateType? _bankListStateType = StateType.loading;
  StateType? get bankListStateType => _bankListStateType;
  List<BankEntity>? _commonUseBankList;
  List<BankEntity>? _bankList;
  List<BankEntity>? get commonUseBankList => _commonUseBankList;
  List<BankEntity>? get bankList => _bankList;

  void setCommonUseBankList(List<BankEntity>? commonUseBankList) {
    _commonUseBankList = commonUseBankList;
    _commonStateType = StateType.bank;
    notifyListeners();
  }

  void setBankList(List<BankEntity>? bankList){
    _bankList = bankList;
    _bankListStateType = StateType.bank;
    notifyListeners();
  }
}
